package com.base.project.modules;

import com.base.project.customAnnotation.ParamCheck;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @ProjectName: project
 * @Package: com.base.project.modules
 * @Description: java类作用描述
 * @Author: Z.G.C
 * @CreateDate: 2020/5/15 6:23 PM
 * @UpdateUser: Z.G.C
 * @UpdateDate: 2020/5/15 6:23 PM
 * @UpdateRemark: The modified content
 * @Version: 1.0
 * <p>Copyright: Copyright (c) 2020</p>
 */
@RestController
public class DemoController {
    @PostMapping("/test")
    // 若接口无必填参数，则写为 @Check(params = {})
    @ParamCheck(params = {"key1", "key2"})
    public String task2(String name) throws Exception {

        return name;
    }

}
